package com.zhilianbao.leyaogo.view.widgets;

import android.content.Context;
import android.util.AttributeSet;

import com.bql.recyclerview.swipe.SwipeMenuRecyclerView;

/**
 * ClassName: MySwipeRecyclerVIew <br>
 * Description: <br>
 * Author: Cyarie <br>
 * Created: 2016/11/2 14:20 <br>
 * Update Time：<br>
 * Update Description：<br>
 */
public class MySwipeRecyclerView extends SwipeMenuRecyclerView {

    public MySwipeRecyclerView(Context context) {
        super(context);
    }

    public MySwipeRecyclerView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public MySwipeRecyclerView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }

    @Override
    public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec, expandSpec);
    }
}
